﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SceneTester
{
    public partial class GameWindow : Form
    {
        public GameWindow()
        {
            InitializeComponent();

            FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            KeyDown += Form1_KeyDown;
            this.WindowState = FormWindowState.Maximized;


            this.KeyDown += GameWindow_KeyDown;
        }

        void GameWindow_KeyDown(object sender, KeyEventArgs e)
        {
            GameInput.GetInstance().NotifyKeyDown(e.KeyCode);
        }

        void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
        }
    }
}
